package com.scalar.chiptrack.operations.process.forms;

import java.util.ArrayList;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

/**
 * User: Murali Krishna Yengala
 * Date: May 12, 2005
 * Time: 10:51:51 AM
 */
public class BomPartEntryForm extends ActionForm {

    private int     productId = -1;
    private String  partNbr = null;
    private String  vendorPartNbr = null;
    private String  description = null;
    private boolean approved = false;
    private String     maxQuantity = null;
    private String     minQuantity = null;
    private String     reorderLevel = null;
    private ArrayList vendorLocations = null;
    private String productType = null;
    private int processStepId = -1;
    private String processType = null;
    private String[] alternateVendorParts;

    public int getProductId() {
        return productId;
    }

    public void setProductId(int productId) {
        this.productId = productId;
    }

    public String getPartNbr() {
        return partNbr;
    }

    public void setPartNbr(String partNbr) {
        this.partNbr = partNbr;
    }

    public String getVendorPartNbr() {
        return vendorPartNbr;
    }

    public void setVendorPartNbr(String vendorPartNbr) {
        this.vendorPartNbr = vendorPartNbr;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public boolean isApproved() {
        return approved;
    }

    public void setApproved(boolean approved) {
        this.approved = approved;
    }


    public String getMaxQuantity() {
        return maxQuantity;
    }

    public void setMaxQuantity(String maxQuantity) {
        this.maxQuantity = maxQuantity;
    }

    public String getMinQuantity() {
        return minQuantity;
    }

    public void setMinQuantity(String minQuantity) {
        this.minQuantity = minQuantity;
    }

    public String getReorderLevel() {
        return reorderLevel;
    }

    public void setReorderLevel(String reorderLevel) {
        this.reorderLevel = reorderLevel;
    }

    public ArrayList getVendorLocations() {
        return vendorLocations;
    }

    public void setVendorLocations(ArrayList vendorLocations) {
        this.vendorLocations = vendorLocations;
    }

    public String getProductType() {
        return productType;
    }

    public void setProductType(String productType) {
        this.productType = productType;
    }

    public int getProcessStepId() {
        return processStepId;
    }

    public void setProcessStepId(int processStepId) {
        this.processStepId = processStepId;
    }

    public String getProcessType()
    {
        return processType;
    }

    public void setProcessType(String processType)
    {
        this.processType = processType;
    }

    public String[] getAlternateVendorParts() {
        return alternateVendorParts;
    }

    public void setAlternateVendorParts(String[] alternateVendorParts) {
        this.alternateVendorParts = alternateVendorParts;
    }

    public void reset( ActionMapping mapping , HttpServletRequest request )
    {
         approved = false;
    }
}
